<?php if (!defined('THINK_PATH')) exit(); if(C('LAYOUT_ON')) { echo ''; } $signPackage = session('signPackage'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>操作失败</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="/Public/User/css/weui.min.css"/>
    <link rel="stylesheet" href="/Public/User/css/example.css"/>
    <script src="/Public/User/js/jquery.js"></script>
    <script src="/Public/User/js/jweixin-1.1.0.js"></script>
    <style type="text/css">
        .weui-btn-area a{
            width:80%;
        }
    </style>
    <script>
        $(function(){
            wx.config({
                //关闭调试模式
                debug:false,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: <?php echo $signPackage["timestamp"];?>,
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                  'closeWindow','hideOptionMenu'
                ]
            });
            wx.ready(function(){
                //屏蔽菜单
                wx.hideOptionMenu();
            });
            var wait = document.getElementById('wait'),href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    close_window();
                    clearInterval(interval);
                };
            }, 1000);
        });
        function close_window(){
            wx.closeWindow();
        }
    </script>
</head>
<body>
<div class="weui-msg">
    <div class="weui-msg__icon-area"><i class="weui-icon-warn weui-icon_msg"></i></div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">操作提示</h2>
        <a id="href" href="<?php echo($jumpUrl); ?>"></a>
    </div>
    <div class="weui-msg__opr-area">
        <p class="weui-btn-area">
            <a href="javascript:close_window();" class="weui-btn weui-btn_default"><?php echo($error); ?></a>
            <a href="javascript:close_window();" class="weui-btn weui-btn_default">点此返回</a>
            <a href="javascript:;" style="display:none" id="wait" class="weui-btn weui-btn_default"><?php echo($waitSecond); ?></a>
        </p>
    </div>
    <div class="weui-msg__extra-area">
        <div class="weui-footer">
            <p class="weui-footer__links">
                <a href="javascript:void(0);" class="weui-footer__link">中国航天-神舟软件</a>
            </p>
            <p class="weui-footer__text">Copyright &copy; 2003-2017 </p>
        </div>
    </div>
</div>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                close_window();
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>